package com.joolun.system.domain;

import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 交易日志对象 t_tranlog
 * 
 * @author ruoyi
 * @date 2021-03-11
 */
public class TTranlog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long tranId;

    /** 用户 */
    @Excel(name = "用户")
    private String primUser;

    /** 来源 */
    @Excel(name = "来源")
    private String sourceUser;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal amount;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 交易类型 (充值、提币、转账、卖出手续费、买入补仓) */
    @Excel(name = "交易类型 (充值、提币、转账、卖出手续费、买入补仓)")
    private String tranType;

    /** 状态：0：正常；1 钱包提现成功；2 钱包提现驳回； */
    @Excel(name = "状态")
    private String status;

    private String amtString;

    public Long getTranId() {
        return tranId;
    }

    public void setTranId(Long tranId) {
        this.tranId = tranId;
    }

    public String getAmtString() {
        return amtString;
    }

    public void setAmtString(String amtString) {
        this.amtString = amtString;
    }

    public void setTranlogId(Long tranId)
    {
        this.tranId = tranId;
    }

    public Long getTranlogId() 
    {
        return tranId;
    }
    public void setPrimUser(String primUser) 
    {
        this.primUser = primUser;
    }

    public String getPrimUser() 
    {
        return primUser;
    }
    public void setSourceUser(String sourceUser) 
    {
        this.sourceUser = sourceUser;
    }

    public String getSourceUser() 
    {
        return sourceUser;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setTranType(String tranType) 
    {
        this.tranType = tranType;
    }

    public String getTranType() 
    {
        return tranType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tranlogId", getTranlogId())
            .append("primUser", getPrimUser())
            .append("sourceUser", getSourceUser())
            .append("amount", getAmount())
            .append("unit", getUnit())
            .append("tranType", getTranType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
